#ifndef _PAN_DETECT_H_
#define _PAN_DETECT_H_
#include "define.h"

#define BEEP_200MS   1
#define BEEP_DOUBLE  2
#define BEEP_1000MS  3

#define c_PAN_DETECT_PPGTA (256-112)		//7us



extern volatile u8 PanMoveInDet;
extern volatile u16 Ichanged;       //Difference of shifting pot current
extern volatile u8  StartWorkCount;
extern volatile u8 last1IAC, last2IAC; 

extern volatile u8 PanDetPulseCnt;
extern volatile u8 NoPanDetectedCnt;


void  StartPanDetect();
void  PanMoveOutDetect(); //run every 100mS
void  PanMoveInDetect();
void  PanDetTrigger();

#endif